using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using QuanLyThuVien1.DTO;
using QuanLyThuVien1.DAO;

namespace QuanLyThuVien1.BUS
{
    public class CDauSach_BUS
    {
        public DAUSACH tim(string maDS)
        {
            DAUSACH_DAO dauSach_Dao = new DAUSACH_DAO();
            DAUSACH dauSach = dauSach_Dao.timDS(maDS);
            return dauSach;
         }
        public DataTable layDanhSachDS()
        {
            DAUSACH_DAO dauSachOfDao = new DAUSACH_DAO();
            DataTable danhSach = dauSachOfDao.layDS();
            return danhSach;

        }
        public void ThemVaoDauSachOfBus(DAUSACH d)
        {
            DAUSACH_DAO dauSachOfDao = new DAUSACH_DAO();
            dauSachOfDao.ThemVaoDauSach(d);
        }
        public void XoaDauSachOfBus(string maDS)
        {
            DAUSACH_DAO dauSachOfBus = new DAUSACH_DAO();
            dauSachOfBus.XoaDS(maDS);
        }
        public bool TimDauSach(string maDS)
        {
            DAUSACH_DAO d = new DAUSACH_DAO();
            return d.TimDauSach(maDS);
        }
      
        
    }
}
